package com.linkme2night.view.login;

import com.linkme2night.R;
import com.linkme2night.R.layout;
import com.linkme2night.R.menu;
import com.linkme2night.controller.FrontController;
import com.linkme2night.model.SocialNetwork_enum;
import com.linkme2night.view.CustomMenuActivity;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MenuActivity extends CustomMenuActivity implements OnClickListener {

	private FrontController fController;
	private Button btn_search, btn_explore;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_menu);
		
		
		fController = new FrontController();

		btn_search = (Button) findViewById(R.id.btn_search);

		btn_search.setOnClickListener(this);
		
		btn_explore = (Button) findViewById(R.id.btn_explore);
		btn_explore.setOnClickListener(this);
		
	}

	@Override
	public void onClick(View v) {
		
		if (v.getId() == btn_search.getId()) 
			fController.openSearch(this);
		else if (v.getId() == btn_explore.getId())
			fController.openExplore(this);
	}

}
